package com.xiaoshuidi.cloud.module.finance.dal.mysql.invoice;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.finance.controller.admin.invoice.vo.*;
import com.xiaoshuidi.cloud.module.finance.dal.dataobject.invoice.InvoiceDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseInvoiceMapper extends BaseMapperX<InvoiceDO> {

    IPage<IssueInvoicePageRespVO> getIssueInvoiceList(Page<IssueInvoicePageRespVO> page, @Param("pageReqVO") IssueInvoicePageReqVO pageReqVO);

    List<BaseInvoiceExcelVO> getExportInvoiceList(@Param("pageReqVO") FinanceInvoiceReqVO pageReqVO);

    List<IssueInvoiceExcelVO> getExportIssueInvoiceList(@Param("reqVO") IssueInvoiceReqVO reqVO);
}
